

function mock(time = 1000) {
    const task = (val = 1) => {
        setTimeout(() => {
            console.log(val)
            task(val + 1)
        },time)
    }
    task()
}

mock()
